package com.dj.mingkong.common.enums;

/**
 * 角色枚举
 *
 * @author zenglonghui
 * @date: 2022/6/28 16:10
 */
public enum RoleEnum {
    USER("user", "普通用户"),
    MUSICIAN("musician", "音乐人"),
    AUDITOR("auditor", "审核员"),
    ADMIN("admin", "管理员");

    private String code;
    private String name;

    RoleEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public boolean equalsCode(String code) {
        return this.code.equals(code);
    }
}
